<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let a = (...other) =>{
            other.forEach(function(e,i){
                console.log(other[i]+=other[i+1]);
                
            })
        }
        a(3,2,4)
    </script>
</body>
</html>